/**
 * Copyright © 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.xs_chater_evaluation.entity;

import com.jeeplus.modules.xs_novel_chapter.entity.XsNovelChapter;
import com.jeeplus.modules.xs_user.entity.XsUser;

import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;
import lombok.Data;

/**
 * 章节评价信息Entity
 * @author 天竹子
 * @version 2021-07-15
 */
@Data
public class XsChapterEvaluation extends DataEntity<XsChapterEvaluation> {
	
	private static final long serialVersionUID = 1L;
	@ExcelField(title="章节名称", fieldType=XsNovelChapter.class, value="chapter.name", align=2, sort=1)
	private XsNovelChapter chapter;		// 章节名称
	@ExcelField(title="用户名称", fieldType=XsUser.class, value="user.nickname", align=2, sort=2)
	private XsUser user;		// 用户名称
	@ExcelField(title="评价内容", align=2, sort=3)
	private String content;		// 评价内容
	
	public XsChapterEvaluation() {
		super();
		this.setIdType(IDTYPE_AUTO);
	}
	
	public XsChapterEvaluation(String id){
		super(id);
	}
}